#include <iostream>
#include <fstream>

void extended_euclid(long long a, long long b, long long& x, long long& y, long long& d)
{
   long long x1, x2, y1, y2;
   if (b == 0)
   {
      d = a;
      x = 1;
      y = 0;
      return;
   }
   x2 = 1, x1 = 0, y2 = 0, y1 = 1;
   while (b > 0)
   {
      long long q, r;
      q = a / b;
      r = a - q * b;
      x = x2 - q * x1;
      y = y2 - q * y1;
      a = (b = r);
      x2 = (x1 = x), y2 = (y1 = y);
   }
   d = a;
   x = x2, y = y2;
}

int main()
{
   std::ifstream in("in.txt");
   std::ofstream out("out.txt");
   long long a, b, c;
   while (in >> a >> b >> c)
   {
      if ((a == 0) && (b == 0))
         if (c == 0)
            out << 1 << " " << 1 << "\n";
         else
            out << "<none>\n";
      else
      {
         long long d;
         long long x, y; 
         if (a*b == 0)
         {
            if (c % (a+b) == 0)
               if (a == 0)
                  out << 1 << " " << c / b << "\n";
               else
                  out << c / a << " " << 1 << "\n";
            else out << "<none>\n";
            return 0;
         }
         if (a < b)
            extended_euclid(b, a, y, x, d);
         else 
            extended_euclid(a, b, x, y, d);
         if (c % d == 0)
            out << (c / d) * x << " " << (c / d) * y << "\n";
         else
            out << "<none>\n";
      }
   }
   return 0;
}